package com.sc.nft.entity.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class DaoSchoolTopSaveAdminDTO {

    @ApiModelProperty(value = "1级dao学堂的图片路径")
    @NotBlank(message = "dao学堂图片路径不得为空")
    private String url;

    @ApiModelProperty(value = "1级dao学堂的名字")
    @NotBlank(message = "dao学堂分类名称不得为空")
    @Length(min = 1, max = 6,message = "名称长度最大为6位")
    private String name;

    @ApiModelProperty(value = "1级dao学堂是否展示 0:展示 1:不展示")
    private Integer status;

    @ApiModelProperty(value = "1级dao学堂排序,数值越高越靠前")
    @NotNull(message = "排序不得为空")
    private Integer sort;

}
